import Vue from 'vue'
import Router from 'vue-router'

import Login from '@/components/Login'
import index from '@/components/index'
import searchDealByHouse from '@/components/deal/searchDealByHouse'
import searchDealByVillage from '@/components/deal/searchDealByVillage'
import dealSearchCache from '@/components/deal/searchCache'
import searchListing from '@/components/listing/searchListing'
import listingResult from '@/components/listing/searchListingResult'
import listingList from '@/components/listing/listingList'
import listingDetail from '@/components/listing/listingDetail'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/deal',
      name: 'searchDealByHouse',
      component: searchDealByHouse
    },
    {
      path: '/dealByVillage',
      name: 'searchDealByVillage',
      component: searchDealByVillage
    },
    {
      path: '/dealSearchCache',
      name: 'dealSearchCache',
      component: dealSearchCache
    },
    {
      path: '/listing',
      name: 'searchListing',
      component: searchListing
    },
    {
      path: '/searchListingResult',
      name: 'searchListingResult',
      component: listingResult
    },
    {
      path: '/listingList',
      name: 'listingList',
      component: listingList
    },
    {
      path: '/listingDetail',
      name: 'listingDetail',
      component: listingDetail
    }
  ]
})
